import {connect} from "react-redux";
import * as actions from "./actions";
import * as actionTypes from "./consts";
import Component from "./components/Component";

const {loginInfo} = actionTypes.key;

const mapStateToProps = state => ({
  loginInfo: state.home.get(loginInfo),
});

const mapDispatchToProps = {
  getLoginInfo: actions.getLoginInfo,
};

export default connect(mapStateToProps, mapDispatchToProps)(Component);
